<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE >
<html>
	<head>
	<meta charset="UTF-8">
	<title></title>
	
	<!--引入bootsrap-->
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/bootstrap.css"/>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/bootstrap-theme.css"/>
	<script src="${pageContext.request.contextPath }/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
	<script src="${pageContext.request.contextPath }/js/npm.js" type="text/javascript" charset="utf-8"></script>
	
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/admin/category-add.css"/>

	</head>
	<body>
		<div class="container">
			<div class="box-header with-border">
	            <h3 class="box-title">添加房间类型</h3>
	        </div>
			
			<form class="form-horizontal addcategory" action="${pageContext.request.contextPath }/TypeServlet?action=addType" method="post">
			  <div class="form-group">
			    <label for="inputEmail3" class="col-sm-2 control-label item-title"></label>
			    <div class="col-sm-8">
			      <input type="text" class="form-control" name="tName" placeholder="请输入类型名称">
			    </div>
			  </div>
			  
			  <div class="form-group">
			    <label for="inputEmail3" class="col-sm-2 control-label item-title"></label>
			    <div class="col-sm-8">
			      <input type="text" class="form-control" name="tTotal" placeholder="请输入此类型房间总量">
			    </div>
			  </div>
			  
			  <div class="form-group">
			    <label for="inputEmail3" class="col-sm-2 control-label item-title"></label>
			    <div class="col-sm-8">
			      <input type="text" class="form-control" name="tResidual" placeholder="请输入此类型房间剩余量">
			    </div>
			  </div>
			  
			  <div class="form-group">
			    <label for="inputEmail3" class="col-sm-2 control-label item-title"></label>
			    <div class="col-sm-8">
			      <input type="text" class="form-control" name="tRemarks" placeholder="请输入备注">
			    </div>
			  </div>
			  
			  <div class="form-group">
			    <div class="col-sm-offset-2 col-sm-8">
			      <button type="submit" class="btn btn-primary btn-lg btn-block btn-danger">添加</button>
			    </div>
			  </div>
			</form>
		</div>
		<%
			String mess=(String)session.getAttribute("message");
			if("".equals(mess)  || mess==null){
			}
		else{%>
		<script type="text/javascript">
			alert("<%=mess%>");
		</script>
		<%session.setAttribute("message", "");}%>
	</body>
</html>
